#include <cstdio>
#include <cmath>
#include <iostream>
using namespace std;

template <class T>
void Compare(T,T,T);
template <class T>
void fun(T i){
    cout<< i<<endl;
}

template <class T>
void Compare(T a,T b,T c){
    T array[3];
    T temp;
    array[0]=a;
    array[1]=b;
    array[2]=c;
    for (int i=1;i<3;i++)
        for (int j=0,k=1;k<3;j++,k++){
            if( array[j] > array[k]){
                temp=array[j];
                array[j]=array[k];
                array[k]=temp;

            }
        }
    cout<<array[2]<<" "<<array[1]<<" "<<array[0]<<endl;
}

int main()
{
    int a=6,b=65,c=4;
    float d=4.5,e=3.5,f=5.7;
    char ch;
    Compare(a,b,c);
    Compare <float> (d,e,f);
    fun <char> (b);
    cout<<b<<endl;
}
